package priv.ln.field_method.method.exer;

/**
 * ClassName: Employee
 * Package: priv.ln.field_method.field
 * Description:
 *案例：将属性测试的exer1中关于员工信息的输出内容放到方法中。通过调用方法显示。
 * @Author 辣辣
 * @Create 2024/6/17 17:00
 * @Version 1.0
 */
public class Employee {
    int id;
    String name;
    int age;
    double salary;

    public void print(){
        System.out.println("Employee ID: " + id + " Name: " + name +
                " Age: " + age + " Salary: " + salary);
    }
}
